package com.kapukapu.user.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sivan
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role")
public class SysRole implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 角色Key
	 */
	@TableField("key")
	private String key;

	/**
	 * 角色名称
	 */
	@TableField("name")
	private String name;

	/**
	 * 描述
	 */
	@TableField("description")
	private String description;

	/**
	 * 状态：0不可用1可用
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 创建人ID
	 */
	@TableField("create_user")
	private Long createUser;

	/**
	 * 修改人ID
	 */
	@TableField("modify_user")
	private Long modifyUser;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@TableField("modify_time")
	private LocalDateTime modifyTime;

	public static final String ID = "id";

	public static final String KEY = "key";

	public static final String NAME = "name";

	public static final String DESCRIPTION = "description";

	public static final String STATUS = "status";

	public static final String CREATE_USER = "create_user";

	public static final String MODIFY_USER = "modify_user";

	public static final String CREATE_TIME = "create_time";

	public static final String MODIFY_TIME = "modify_time";

}
